package com.usian.dao;


import com.usian.pojo.Student;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;
import tk.mybatis.mapper.common.Mapper;

import java.util.List;


public interface StudentMapper extends Mapper<Student> {

    @Update("update student set tid=null where tid=#{id} ")
    void update(Integer id);

    @Select("select * from student where tid=#{id}")
    List<Student> find(Integer id);
}
